<?php

class NewsWidget extends Widget {
	
	public function render($data){
		import('ORG.Util.Page');
		$newsModel = D('News');
		$type  = $data['type'];
		$count = intval($data['count'])>0 ? $data['count']:10;
		$order = 'dateline desc';
		$totalCount = $newsModel->count();
		$Page       = new Page($totalCount,25);
	}
}